package gof.com.yew.command;

//接受者执行请求的操作
public class Receiver {
	
	private String name ;
	private int  quantity;
	
	public Receiver(String name, int quantity) {
		this.name = name;
		this.quantity = quantity;
	}

	public void buy(){
	      System.out.println("request [ Name: "+name+",  Quantity: " + quantity +" ] bought");
	   }
	
	   public void sell(){
	      System.out.println("request [ Name: "+name+",    Quantity: " + quantity +" ] sold");
	   }

}
